package com.egg.ylt.Utils;

/**
 * Created by sichaoqi on 2018/8/28.
 */

public class API {
    private static final int BaseType = 2; //0测试 1预发布 2正式

    static {
        if (BaseType == 0) {
            BASE_URL = "http://test.mumzone.cn:8016";
            BASE_IMG_URL = "http://test.mumzone.cn:8019";
            BASE_WEB_URL = "http://test.mumzone.cn:94";
        } else if (BaseType == 1) {
            BASE_URL = "http://re.mumzone.cn/app";
            BASE_IMG_URL = "http://re.mumzone.cn/public";
            BASE_WEB_URL = "http://pre.mumzone.cn:83";
        } else {
            BASE_URL = "http://service.mumzone.cn/app";
            BASE_IMG_URL = "http://service.mumzone.cn/public";
            BASE_WEB_URL = "http://wacth.mumzone.cn";
        }
    }

    /**
     * 根路径
     */
    //线上环境
//    public static final String BASE_URL = "http://service.mumzone.cn/app";

    //预发布环境
    public static final String BASE_URL;

    //测试
//    public static final String BASE_URL = "http://test.mumzone.cn:8016";

    //本地调式
//    public static final String BASE_URL = "http://192.168.98.109:9000";

    //测试图片服务地址
//    public static final String BASE_IMG_URL = "http://test.mumzone.cn:8019";

    //上传图片服务地址
//    public static final String BASE_IMG_URL = "http://service.mumzone.cn/public";


    //预上线上传图片服务地址
    public static final String BASE_IMG_URL;

    //测试用weburl
//    public static final String BASE_WEB_URL = "http://test.mumzone.cn:94";
    //预发布
    public static final String BASE_WEB_URL;
    //正式环境
//    public static final String BASE_WEB_URL = "http://wacth.mumzone.cn";

    /**
     * 预约--游泳馆信息展示
     */
    public static final String GET_NATATORIUM_LIST_PAGE = BASE_URL + "/api/v1/ylb/app/getNatatoriumListPage";

    /**
     * 预约_查询服务列表
     */
    public static final String GET_SHOP_SERVER_LIST = BASE_URL + "/api/v1/ylb/app/getShopServerList";

    /**
     * 预约--立即预约
     */
    public static final String POST_ADD_APPOINTMENT = BASE_URL + "/api/v1/ylb/app/addAppointment";

    /**
     * 预约--游泳馆详情
     */
    public static final String GET_NATATORIUM_BY_ID = BASE_URL + "/api/v1/ylb/app/getNatatoriumByid";

    /**
     * 预约--套餐卡详情
     */
    public static final String GET_SETMEAL_BY_ID = BASE_URL + "/api/v1/ylb/app/getSetmealbyid";

    /**
     * 预约--水浴师详情
     */
    public static final String GET_WATER_BY_ID = BASE_URL + "/api/v1/ylb/app/getWaterByid";

    /**
     * 预约_服务项目详情
     */
    public static final String GET_SHOP_SERVER_BY_ID = BASE_URL + "/api/v1/ylb/app/getShopServerById";

    /**
     * 订单_查询预约服务列表(app)
     */
    public static final String GET_APPOINTMENT_SERVE_LIST = BASE_URL + "/api/v1/ylb/app/getAppointmentServeList";

    /**
     * 订单_取消预约
     */
    public static final String GET_CANCEL_APPOINTMENT = BASE_URL + "/api/v1/ylb/app/cancleAppointment";

    /**
     * 咨询--首页信息列表
     */
    public static final String GET_HOME_PAGE = BASE_URL + "/api/v1/ylb/app/getHomePage";

    /**
     * 咨询--咨询详情
     */
    public static final String GET_WEB_BY_ID = BASE_URL + "/api/v1/ylb/app/getWebByid";

    /**
     * 咨询--视频播放
     */
    public static final String GET_ACTION_VIDEO = BASE_URL + "/api/v1/ylb/app/ActionVideo";

    /**
     * 登陆--发送验证码
     */
    public static final String GET_PHONE_CODE = BASE_URL + "/api/v1/ylb/app/getPhoneCode";

    /**
     * 登陆--手机号验证码登陆
     */
    public static final String GET_LOGIN = BASE_URL + "/api/v1/ylb/app/login";

    /**
     * / 登陆--账号密码登陆
     */
    public static final String GET_PHONE_PASSWORD = BASE_URL + "/api/v1/ylb/app/getPhonePassword";

    /**
     * 个人--个人信息展示
     */
    public static final String GET_USER_BY_ID = BASE_URL + "/api/v1/ylb/app/getUserByid";

    /**
     * 个人--个人交易明细
     */
    public static final String GET_BALLET_RECORD = BASE_URL + "/api/v1/ylb/app/getBalletRecord";

    /**
     * 个人--个人信息优惠卷
     */
    public static final String GET_COUPON_BY_ID = BASE_URL + "/api/v2/ylb/app/getCoupon";

    /**
     * 个人--个人积分展示
     */
    public static final String GET_INTEGRAL_FLOW = BASE_URL + "/api/v1/ylb/app/getIntegralFlow";

    /**
     * 我的_次卡列表
     */
    public static final String GET_MEMBER_CARD_LIST = BASE_URL + "/api/v1/ylb/app/getMemberCardList";

    /**
     * 预约_门店次卡详情
     */
    public static final String GET_SHOP_CARD_BY_ID = BASE_URL + "/api/v1/ylb/app/getShopCardById";

    /**
     * 个人--宝宝管理
     */
    public static final String GET_MEMBER_BABY = BASE_URL + "/api/v1/ylb/app/getMemberBaby";

    /**
     * 个人--宝宝添加
     */
    public static final String GET_ADD_MEMBER_BABY = BASE_URL + "/api/v1/ylb/app/addMemberBaby";

    /**
     * 获取可预约技师服务列表
     */
    public static final String GET_APPOINTMENT_TIME = BASE_URL + "/api/v1/ylb/app/getAppointmentTime";

    /**
     * 登陆--修改密码（根据手机号）
     */
    public static final String GET_UPDATE_PASSWORD = BASE_URL + "/api/v1/ylb/app/updateUserPhone";

    /**
     * 修改用户手机号
     */
    public static final String GET_UPDATE_PHONE = BASE_URL + "/api/v1/ylb/app/updateMemberPhone";

    /**
     * 个人--验证手机号是否存在
     */
    public static final String GET_USER_PHONE_PRUE = BASE_URL + "/api/v1/ylb/app/userPhonePrue";

    /**
     * 支付宝、支付购买次卡
     */
    public static final String GET_BUY_TIMES_CARD = BASE_URL + "/api/v1/ylb/app/buyTimesCardByAli";

    /**
     * 微信、支付购买次卡
     */
    public static final String GET_BUY_TIMES__WECHAT = BASE_URL + "/api/v1/ylb/app/buyTimesCardByWeChat";

    /**
     * 意见反馈添加
     */
    public static final String POST_FEED_BACK = BASE_URL + "/api/v1/ylb/app/addFeedback";


    /**
     * 公共模块 / 上传图片接口
     */
    public static final String UP_LOAD_FILE = BASE_IMG_URL + "/api/v1/public/upload/uploadFile";

    /**
     * 个人--个人信息用户修改
     */
    public static final String POST_UPDATE_USER_PHOTO = BASE_URL + "/api/v1/ylb/app/updateUserByid";

    /**
     * 个人--设置宝宝为默认状态
     */
    public static final String POST_BABY_STATUS = BASE_URL + "/api/v1/ylb/app/getBabyStatus";

    /**
     * 个人--宝宝删除
     */
    public static final String POST_DELETE_BABY = BASE_URL + "/api/v1/ylb/app/deleteBabyByid";

    /**
     * 咨询--关键字查询
     */
    public static final String POST_VAGUE_TITLE = BASE_URL + "/api/v1/ylb/app/getVagueTitle";

    /**
     * 咨询--搜索热度
     */
    public static final String POST_HEAT_TITLE = BASE_URL + "/api/v1/ylb/app/getHeatTitle";

    /**
     * 钱包 支付宝充值
     * /api/v1/ylb/app/rechargeByAli
     */
    public static final String POST_RECHARGE_ZFB = BASE_URL + "/api/v1/ylb/app/rechargeByAli";

    /**
     * 钱包 微信充值
     */
    public static final String POST_RECHARGE_WX = BASE_URL + "/api/v1/ylb/app/rechargeByWeChat";

    /**
     * 获取游泳馆实时数据
     */
    public static final String POST_REALTIME_DATA = BASE_URL + "/api/v1/ylb/app/getRealtimeData";

    /**
     * 获取支付方式
     */
    public static final String POST_PAY_TYPE = BASE_URL + "/api/v1/ylb/app/getPayType";

    /**
     * 获取宝宝卡路里数据
     */
    public static final String POST_CALORIES = BASE_URL + "/api/v1/ylb/app/getCalories";

    /**
     * 获取是否绑定设备
     */
    public static final String POST_EQUIPMENT_STATUS = BASE_URL + "/api/v1/ylb/app/judgeBindEquipmentStatus";

    /**
     * 扫二维码绑定设备
     */
    public static final String POST_BIND_EQUIPMENT = BASE_URL + "/api/v1/ylb/app/bindEquipment";

    /**
     * 个人中心——版本跟新接口
     */
    public static final String POST_CHECK_VERSION = BASE_URL + "/api/v1/ylb/app/checkAppVersion";

    /**
     * 咨询模块——咨询收藏
     */
    public static final String POST_COLLECT_MESSAGE = BASE_URL + "/api/v1/ylb/app/collectMessage";

    /**
     * 咨询模块——取消收藏
     */
    public static final String POST_CANCEL_MESSAGE = BASE_URL + "/api/v1/ylb/app/cancelMessage";

    /**
     * 数据模块——成长日记查看
     */
    public static final String POST_DIARY_PHOTO = BASE_URL + "/api/v1/ylb/app/getDiaryList";

    /**
     * 上传用户照片
     */
    public static final String POST_UPLOAD_PHOTO = BASE_IMG_URL + "/api/v1/public/upload/uploadPhoto";

    /**
     * 数据模块——保存宝宝相册
     */
//    public static final String POST_SAVE_DIARY_PHOTO = BASE_URL + "/api/v1/ylb/app/saveDiaryPhoto"; 1.4废弃
    public static final String POST_SAVE_DIARY_PHOTO = BASE_URL + "/api/v1/ylb/app/addBabyPhoto";
    /**
     * 数据模块——成长日记删除
     */
    public static final String POST_DELETE_DIARY_PHOTO = BASE_URL + "/api/v1/ylb/app/deleteDiaryPhoto";

    /**
     * 个人模块——设备管理页面
     */
    public static final String POST_EQUIPMENTS = BASE_URL + "/api/v1/ylb/app/getEquipments";

    /**
     * 个人模块——设备管理的删除
     */
    public static final String POST_DELETE_EQUIPMENT = BASE_URL + "/api/v1/ylb/app/deleteEquipment";

    /**
     * 个人模块——咨询收藏列表
     */
    public static final String POST_COLLECT_SHOP = BASE_URL + "/api/v1/ylb/app/getCollectListPage";

    /**
     * 个人中心——消息中心
     */
    public static final String POST_INFORMATIONS = BASE_URL + "/api/v1/ylb/app/getInformations";

    /**
     * 获取 banner 信息
     */
    public static final String GET_BANNER_DATA = BASE_URL + "/api/v1/ylb/app/getAPPBanner";

    /**
     * 获取 次卡列表 信息
     */
    public static final String GET_TIME_CARD_LIST = BASE_URL + "/api/v1/ylb/app/getTimeCardList";

    /**
     * 发现页 推荐
     */
    public static final String MESSAGE_RECOMMEND_PAGE = BASE_URL + "/api/v1/ylb/app/messageRecommendPage";

    /**
     * 健康页（记录） 获取首页宝宝
     */
    public static final String GET_CURRENT_BABY_INFO = BASE_URL + "/api/v1/ylb/app/getHomeBaby";
    /**
     * 健康页（记录） 获取宝宝动态列表
     */
    public static final String GET_BABY_DYNAMIC_MSGS = BASE_URL + "/api/v1/ylb/app/getDynamicStateListPage";
    /**
     * 健康页（记录） 删除宝宝动态，单条
     */
    public static final String DELETE_BABY_DYNAMIC_MSG = BASE_URL + "/api/v1/ylb/app/deleteBabyLifeRecord";
    /**
     * 新增、编辑身高体重信息
     */
    public static final String POST_UPDATE_HEIGHT_WEIGHT = BASE_URL + "/api/v1/ylb/app/addOrUpdateHeightAndWeight";

    /**
     * 获取身高体重列表
     */
    public static final String POST_GROW_UP_RECORD = BASE_URL + "/api/v1/ylb/app/getHeightAndWeightListPage";

    /**
     * 删除宝宝动态
     */
    public static final String GET_DELETE_RECORD = BASE_URL + "/api/v1/ylb/app/deleteBabyLifeRecord";

    /**
     * 获取宝宝列表
     */
    public static final String GET_BABY_LIST = BASE_URL + "/api/v1/ylb/app/getBabyList";

    /**
     * 我的 - 亲友团 获取亲友列表
     */
    public static final String GET_RELATIVE_LIST = BASE_URL + "/api/v1/ylb/app/getRelativeList";

    /**
     * 我的 - 亲友团 手机号邀请
     */
    public static final String ADD_USER_RELATIVE = BASE_URL + "/api/v1/ylb/app/addBabyRelationRedis";

    /**
     * 我的 - 亲友团 手机号邀请
     */
    public static final String DELETE_RELATIVE_BY_ID = BASE_URL + "/api/v1/ylb/app/deleteRelativeById";

    /**
     * 获取关系
     */
    public static final String GET_RELATION_LIST = BASE_URL + "/api/v1/ylb/app/getRelationList";

    /**
     * 添加宝宝与会员关系
     */
    public static final String ADD_BABY_USER_RELATIONSHIP = BASE_URL + "/api/v1/ylb/app/addBabyRelation";

    /**
     * 获取宝宝历史设备记录累计值
     */
    public static final String GET_BABY_LIFE_EQUIPMENT_DATA = BASE_URL + "/api/v2/ylb/app/getBabyLifeEquipmentData";

    /**
     * 分页获取宝宝历史设备记录
     */
    public static final String GET_BABY_LIFE_EQUIPMENT_DATA_PAGE = BASE_URL + "/api/v2/ylb/app" +
            "/getBabyLifeEquipmentDataPage";

    /**
     * 查询用户第一次登陆提醒的优惠券
     */
    public static final String QUERY_REMIND_TICKET = BASE_URL + "/api/v2/ylb/app/queryRemindTicket";

    /**
     * 查询用户在特定门店的优惠券
     */
    public static final String QUERY_RECEIVED_COUPON = BASE_URL + "/api/v2/ylb/app/getReceiveCoupon";

    /**
     * 领取优惠券
     */
    public static final String RECEIVE_COUPON = BASE_URL + "/api/v2/ylb/app/receiveCoupon";

    /**
     * 获取技师和状态
     */
    public static final String GET_TECHNICIAN_STATUS = BASE_URL + "/api/v2/ylb/app/getTechnicianStatus";

    /**
     * 查询预约服务子订单详情
     */
    public static final String GET_APPOINTMENT_SUB_ORDER_BY_ID = BASE_URL + "/api/v1/ylb/app" +
            "/getAppointmentSubOrderById";

    /**
     * 获取成长印记列表
     * 添加版本1.5  rap2 迭代接口
     */
    public static final String GET_BABY_GROWTH_STAMP_LIST = BASE_URL + "/api/v2/ylb/app/getBabyGrowthStampList";
    /**
     * 获取用户照片列表
     * 添加版本1.5 rap2 迭代接口
     * ACT_PhotoBrowser
     */
    public static final String GET_BABY_PHOTO_LIST = BASE_URL + "/api/v2/ylb/app/getMemberBabyPhotoListPage";

    /**
     * 登录成功获取会员信息
     */
    public static final String SCAN_CODE_LOGIN = BASE_URL + "/api/v2/ylb/app/scanCodeLogin";

    /**
     * 实时获取身高体重数据
     */
    public static final String GET_REALTIME_HEALTHY_DATA = BASE_URL + "/api/v2/ylb/app/getRealTimeHealthyData";


    /*
     * 次卡详情页面分享出去的地址
     */
    public static final String TIME_CARD_SHARE_URL = BASE_WEB_URL;

    /**
     * 服务详情页分享出去的地址
     */
    public static final String SERVICE_DETAIL_SHARE_URL = BASE_WEB_URL;

    /**
     * 资讯分享的链接
     */
    public static final String SHARE_URI = BASE_WEB_URL + "/#/consult";

    /**
     * 门店分享的链接
     */
    public static final String SHARE_SHOP_URI = BASE_WEB_URL + "/#/store";


    /**
     * 邀请家人链接邀请 http://test.mumzone.cn:94/#/invite?token=********&companyId=*******&babyId=*****
     */
    public static final String INVITE_URI = BASE_WEB_URL + "/#/invite";
//    public static final String INVITE_URI = "http://test.mumzone.cn:94/#/invite";

    /**
     * 健康页邀请家人链接 http://test.mumzone
     * .cn:94/#/invite?token=SEhULVNFQ1RFVDoxNTQ4MDU0OTQ0OkYxMkRFRTZFNzAwMDAwMDBDQzAwMDAwMDAwMjJFMDAw&companyId
     * =EA1887DE54000000F00000000022E000&babyId=F142FB96C8000000F00000000022E000&time=1548055236217
     */
//    public static final String INVITE_WITHOUT_RELATIONSHIP = "http://test.mumzone.cn:94/#/invite";
    public static final String INVITE_WITHOUT_RELATIONSHIP = BASE_WEB_URL + "/#/invite";


}
